<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Hello React!</title>
<!-- react 核心库 -->
<script src="https://cdn.staticfile.org/react/16.4.0/umd/react.development.js"></script>
<!-- dom相关库 -->
<script src="https://cdn.staticfile.org/react-dom/16.4.0/umd/react-dom.development.js"></script>
<!-- Es6->Es5 jsx->js -->
<script src="https://cdn.staticfile.org/babel-standalone/6.26.0/babel.min.js"></script>
</head>
<body>
 
<div id="example"></div>
<!-- 使用JSX，属性使用text/babel -->
<script type="text/babel">
// 创建虚拟DOM
const element = (
    <h1>Hello, React!</h1>
);
// 渲染虚拟DOM到页面
ReactDOM.render(element, document.getElementById('example'));
</script>
 
</body>
</html>